package org.xmdl.silk.interpreter;

public enum Operator {

	SUM("+"),
	
	SUB("-"),
	
	MUL("*"),
	
	DIV("/"),
	
	;
	
	private final String literal;

	private Operator(String op) {
		this.literal = op;
	}

	public String getLiteral() {
		return literal;
	}

	public static Operator get(String o) {
		Operator[] values = values();
		for (Operator operator : values) {
			if (operator.literal.equals(o))
				return operator;
		}
		return null;
	}
	
}
